package com.turing.customer.mapper;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.turing.customer.entity.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.turing.customer.entity.Liveness;
import com.turing.customer.entity.SignEveryday;
import com.turing.customer.entity.Statistics;
import org.apache.ibatis.annotations.Param;
import result.Result;

import java.net.ServerSocket;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author Lenovo
* @description 针对表【customer(客户表)】的数据库操作Mapper
* @createDate 2023-04-10 15:14:50
* @Entity com.turing.customer.entity.Customer
*/
public interface CustomerMapper extends BaseMapper<Customer> {

    Map<String, Object> liveDay(@Param("day1") String day1);

    Map<String, Object> geCusById(@Param("id") String id);

    List<Integer> selectCustomer(@Param("monthList") List monthList);

    List<Map> listMerComments();

    List<Map<String, Object>> cusList(@Param("cusNickname") String cusNickname, @Param("cusInfo") String cusInfo, @Param("sortType") Integer sortType, @Param("orderType") Integer orderType);

    List<Map> cusCenter(@Param("cusId") String cusId, @Param("username") String username);

    List<Map> rankList(@Param("orderType") Integer orderType, @Param("username") String username);

    Map<String, Object> myWallet(@Param("username") String username);

    List<Map> likeList(@Param("cusId") String cusId, @Param("username") String username);

    List<Map> cusListByCusIds(@Param("ids") String[] ids, @Param("username") String username);

    Double selectDistance(@Param("merchantId") String merchantId, @Param("longitude") String longitude, @Param("latitude") String latitude, @Param("username") String username);
}




